package com.ovidiojf.vendas;

import org.hibernate.Session;

public class Conecta {

	public static void main(String[] args) {
		
		System.out.println("Vendas na Web");
		
		Session session = null;
		
		try {
			session = HibernateUtil.getSession().openSession();
			System.out.println("Conectou a vendas!!");
		}
		finally {
			session.close();
			System.out.println("Fechou a conexão vendas");
		}

	}

}
